﻿@{
    Layout = "~/Views/Shared/OA/_Layout.cshtml";
}
@if (IsSectionDefined("Toolbar"))
{
    <div id="toolbar" class="toolbar">
        <div class="wrap">
            @RenderSection("Toolbar", false)
        </div>
    </div>
}
<div id="lay-tree">
    <div id="center-pane">
        <div class="detail">
            @RenderSection("Left")
        </div>
    </div>
    <div id="left-pane">
        @RenderSection("Right")
    </div>
</div>
@RenderBody()
<script>

    jQuery(function ()
    {
        var height = $("body").height() - $("#toolbar").height();
        $("#lay-tree").height(height);
        $("#lay-tree").kendoSplitter(
        {
            panes:
            [
            { collapsible: false },
            { collapsible: true, size: "270px" }
            ]
        });
    });

    function nav(url)
    {
        window.location = url;
    }

    function back(reload, data, message, delay)
    {
        top.backTab(reload, data, message, delay)
    }

</script>
